<?php

namespace App\Policies;

use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\User;
use App\Models\Goods;


class GoodsPolicy
{
    use HandlesAuthorization;


    public function update(User $currentUser , Goods $goods){

        return $currentUser->id == $goods->user_id;
    }


}
